﻿@model canthovieclam.Models.RegisterModel
@using canthovieclam.Helper;
@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_LayoutEmployer.cshtml";
}

<h2>Create a New Account</h2>
<p>
    Use the form below to create a new account. 
</p>
<p>
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"> </script>
@Html.CKEditorHeaderScripts()

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div class="data-entry">
        <h2>@Resources.Resource.Employer_Register_AccountInformation</h2>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.JobSeeker_LogOn_UserName
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.UserName)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_EmailAddress
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Email)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.Email)
            </div>

        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.JobSeeker_LogOn_Password
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.PasswordFor(m => m.Password)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.Password)
            </div>

        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_ConfirmPassword
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.PasswordFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>
        </div>
        <h2>@Resources.Resource.Employer_Register_CompanyInformation</h2>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_CompanyName
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.EmployerName)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.EmployerName)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_EmployerType
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.DdlEmployerType(m=>m.EmployerType)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.EmployerType)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_CompanySize
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.EmployerSize)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.EmployerSize)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_Website
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Website)
            </div>
            <div class="editor-field col span_1_of_4">
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_CompanyProfile
            </div>
            <div class="editor-field col span_3_of_4">
                @Html.CKEditorFor(m => m.EmployerProfile, "toolbar:'Basic', uiColor:'#f5f9f0'")
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_Phone
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Phone)
            </div>
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_Fax
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Fax)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_Country
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.DdlCountry(m => m.CountryId)
            </div>
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_CityProvince
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.DdlLocation(m => m.CityProvinceId)
            </div>
        </div>
        <h2>@Resources.Resource.Employer_Register_ContactInformation</h2>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_ContactName
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.ContactName)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.ContactName)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_Title
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Title)
            </div>
            <div class="editor-field col span_1_of_4">
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Register_CellPhone
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.CellPhone)
            </div>
            <div class="editor-field col span_1_of_4">
            </div>
        </div>
        <div class="section group">
            <div class="col span_1_of_4">
                Nhập mã trên:
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.Partial("_Captcha", new canthovieclam.Models.Captcha())
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.Partial("_InvisibleCaptcha", new canthovieclam.Models.InvisibleCaptcha())
            </div>
        </div>
        <div class="section group">
            <div class="col span_1_of_4">
            </div>
            <div class="editor-field col span_1_of_4">
                <input type="submit" value="@Resources.Resource.Employer_Register_RegisterButton" />
            </div>
        </div>
    </div>
}